import axios from 'axios'

export function getHomeInfo () {
  return axios.get('/api/index.json')
}

export function getMovieHomeInfo (params) {
  return axios.get(`/movie/${params}?start=0&count=3`)
}

export function getMovieMoreInfo (params) {
  return axios.get(`/movie/${params.type}?start=${params.start}&count=20`)
}

export function getSearchMovie (params) {
  return axios.get(`/movie/search?q=${params}`)
}
